package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 我的佣金数据结构
 *
 * @author fengzhen
 * @version v1.0, 2018/5/11
 */
public class BrokerageBean implements Parcelable{

    /**
     * id : 1
     * token : null
     * pushSign : null
     * rows : 10
     * page : 1
     * sort : null
     * order : asc
     * balanceId : 1
     * payeeAccount : 569982006@qq.com
     * payeeRealName : 王鹏飞
     * amount : 2.15
     * state : 1
     * paymentMethod : 1
     * phone : 18482229221
     * createTime : 2018-05-10 16:52:23
     * updateTime : 2018-05-10 16:56:52
     * start : 0
     */

    private int id;
    private Object token;
    private Object pushSign;
    private int rows;
    private int page;
    private Object sort;
    private String order;
    private int balanceId;
    private String payeeAccount;
    private String payeeRealName;
    private double amount;
    private int state;
    private int paymentMethod;
    private String phone;
    private String createTime;
    private String updateTime;
    private int start;

    protected BrokerageBean(Parcel in) {
        id = in.readInt();
        rows = in.readInt();
        page = in.readInt();
        order = in.readString();
        balanceId = in.readInt();
        payeeAccount = in.readString();
        payeeRealName = in.readString();
        amount = in.readDouble();
        state = in.readInt();
        paymentMethod = in.readInt();
        phone = in.readString();
        createTime = in.readString();
        updateTime = in.readString();
        start = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(rows);
        dest.writeInt(page);
        dest.writeString(order);
        dest.writeInt(balanceId);
        dest.writeString(payeeAccount);
        dest.writeString(payeeRealName);
        dest.writeDouble(amount);
        dest.writeInt(state);
        dest.writeInt(paymentMethod);
        dest.writeString(phone);
        dest.writeString(createTime);
        dest.writeString(updateTime);
        dest.writeInt(start);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<BrokerageBean> CREATOR = new Creator<BrokerageBean>() {
        @Override
        public BrokerageBean createFromParcel(Parcel in) {
            return new BrokerageBean(in);
        }

        @Override
        public BrokerageBean[] newArray(int size) {
            return new BrokerageBean[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Object getToken() {
        return token;
    }

    public void setToken(Object token) {
        this.token = token;
    }

    public Object getPushSign() {
        return pushSign;
    }

    public void setPushSign(Object pushSign) {
        this.pushSign = pushSign;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public Object getSort() {
        return sort;
    }

    public void setSort(Object sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public int getBalanceId() {
        return balanceId;
    }

    public void setBalanceId(int balanceId) {
        this.balanceId = balanceId;
    }

    public String getPayeeAccount() {
        return payeeAccount;
    }

    public void setPayeeAccount(String payeeAccount) {
        this.payeeAccount = payeeAccount;
    }

    public String getPayeeRealName() {
        return payeeRealName;
    }

    public void setPayeeRealName(String payeeRealName) {
        this.payeeRealName = payeeRealName;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getPaymentMethod() {
        return paymentMethod;

    }

    public void setPaymentMethod(int paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

}
